from django import template

register = template.Library()

def analytics_tracker(uacct):
    return """
	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
	</script>
	<script type="text/javascript">
	_uacct = "%(uacct)s";
	urchinTracker();
	</script>
	""" % { 'uacct': uacct }

register.simple_tag(analytics_tracker)

